package com.yaorange.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "car")
public class Car {
    @Id
    @Column(name = "car_id")
    private Integer carId;

    private String brand;//品牌

    @Column(name = "buy_date")
    private String buyDate;//购买时间

    @Column(name = "loan_status")
    private String loanStatus;//贷款情况：全款，贷款

    @Column(name = "buy_price")
    private String buyPrice;//购买价格

    @Column(name = "refund_date")
    private String refundDate;//还款时间

    @Column(name = "refund_month")
    private String refundMonth;//月供

    @Column(name = "customer_id")
    private Integer customerId;

    /**
     * @return car_id
     */
    public Integer getCarId() {
        return carId;
    }

    /**
     * @param carId
     */
    public void setCarId(Integer carId) {
        this.carId = carId;
    }

    /**
     * @return brand
     */
    public String getBrand() {
        return brand;
    }

    /**
     * @param brand
     */
    public void setBrand(String brand) {
        this.brand = brand == null ? null : brand.trim();
    }

    /**
     * @return buy_date
     */
    public String getBuyDate() {
        return buyDate;
    }

    /**
     * @param buyDate
     */
    public void setBuyDate(String buyDate) {
        this.buyDate = buyDate == null ? null : buyDate.trim();
    }

    /**
     * @return loan_status
     */
    public String getLoanStatus() {
        return loanStatus;
    }

    /**
     * @param loanStatus
     */
    public void setLoanStatus(String loanStatus) {
        this.loanStatus = loanStatus == null ? null : loanStatus.trim();
    }

    /**
     * @return buy_price
     */
    public String getBuyPrice() {
        return buyPrice;
    }

    /**
     * @param buyPrice
     */
    public void setBuyPrice(String buyPrice) {
        this.buyPrice = buyPrice == null ? null : buyPrice.trim();
    }

    /**
     * @return refund_date
     */
    public String getRefundDate() {
        return refundDate;
    }

    /**
     * @param refundDate
     */
    public void setRefundDate(String refundDate) {
        this.refundDate = refundDate == null ? null : refundDate.trim();
    }

    /**
     * @return refund_month
     */
    public String getRefundMonth() {
        return refundMonth;
    }

    /**
     * @param refundMonth
     */
    public void setRefundMonth(String refundMonth) {
        this.refundMonth = refundMonth == null ? null : refundMonth.trim();
    }

    /**
     * @return customer_id
     */
    public Integer getCustomerId() {
        return customerId;
    }

    /**
     * @param customerId
     */
    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }
}
